<template class="index_background">
  <div>
    <el-collapse>
      <div class="divcss5" style="border-bottom:3px solid #eee">
      <h5 align="left">招聘进度管理>进行中</h5>
      </div>
        <el-table :data="tableData">
        <el-table-column prop="stuname" label="姓名" width="100" align="center">
         <!-- <template slot-scope="scope">
         <router-link to='checkresume'>
          <el-link @click="preview(scope.row)" v-if="scope.row.name==0"></el-link>
          <el-link @click="preview(scope.row)" v-else>{{scope.row.name}}</el-link>
           </router-link>
        </template> -->
        </el-table-column>
        <!-- <el-table-column prop="gender" label="性别" width="50" align="center">
        </el-table-column> -->
        <!-- <el-table-column prop="age" label="年龄" width="50" align="center">
        </el-table-column> -->
        <el-table-column prop="education" label="学历" width="50" align="center">
        </el-table-column>
        <el-table-column prop="jobname" label="职位" width="200" align="center">
        </el-table-column>
        <el-table-column prop="status" label="状态" width="150" align="center">
        </el-table-column>
       <el-table-column label="操作" width="400" align="center">
      <template slot-scope="scope" >
      <router-link to='sendinterview'>
        <el-button
          size="mini"
          @click="handleLook(scope.$index, scope.row)">发送面试通知</el-button>
   </router-link>
      <router-link to='refuse'>
        <el-button
          size="mini"
          @click="handleLook(scope.$index, scope.row)">发送拒绝信息</el-button>
   </router-link>
      <router-link to='sendoffer'>
        <el-button
          size="mini"
          @click="handleLook(scope.$index, scope.row)">发送offer</el-button>
          </router-link>
      </template>
    </el-table-column>
    </el-table>
    </el-collapse>
    <el-pagination v-if="total"
      background
      layout="prev, pager, next"
      :total="total">
    </el-pagination>
    </div>
</template>
<style>
.divcss5{
  margin:30px 0;
  color: rgb(144,144,144);
  height: 100px;
}
.index_background{
   background:white;
   }
  .lable{
    color: rgb(144,144,144);
    margin-top:30px;
    margin-bottom:30px;
  }
  .el-header {
    background-color: #B3C0D1;
    color: #333;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
  }
</style>

<script>
import fetch from "../api/fetch";
  export default {
    data() {
      return {
        total: 0,
        tableData: [],
      }
    },
    async mounted() {
      const result = await fetch.getStatusing({
        eid: '1006'
      })
      if (result.status === 200) {
        this.tableData = result.data.rows;
        this.total = result.data.total;
      }
    },
    methods: {
      handleLook(index, row) {
        console.log(index, row);
      },
      handleDelete(index, row) {
        console.log(index, row);
      },
     
    }
  };
</script>